project(example CXX)
cmake_minimum_required(VERSION 2.6)
include_directories(${CMAKE_BINARY_DIR} ${PROJECT_SOURCE_DIR})  
set(CMAKE_BUILD_TYPE "MinSizeRel")
file(GLOB HEADERS ../*.h)
file(GLOB SEARCH ../*.cpp)
set(PROGRAMS apend check checkexp)
set(CORELIBS ${SEARCH} ${HEADERS})
foreach(program ${PROGRAMS})
  add_executable(${program} ${program}.cpp ${CORELIBS})
endforeach(program)

